package rs.frenjoynet.core.ui;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.ScopeType;
import rs.frenjoynet.core.core.ActiveUserSession;

/**
 * Created by IntelliJ IDEA.
 * User: ppopovic
 * Date: 22.10.2009.
 * Time: 15.49.32
 * To change this template use File | Settings | File Templates.
 */
@Name ("facadeBean")
@Scope (ScopeType.EVENT)
@AutoCreate
public class FacadeBean extends BaseBean
{
	private ActiveUserSession activeUserSession;

	public ActiveUserSession getActiveUserSession()
	{
		if (activeUserSession == null)
		{
			activeUserSession = getCoreSecurityFacade().getActiveUserSession();
		}
		return activeUserSession;
	}
}
